package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lilele
 */
@Data
@TableName(value = "admin_folder_file")
public class AdminFolderFileEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 文件夹名称
     */
    @Length(max = 30, message = "名称限制100个字符")
    @TableField(value = "name")
    private String name;

    /**
     * 文件id
     */
    @TableField(value = "fileId")
    private String fileId;

    /**
     * 产品、项目id
     */
    @TableField(value = "projectId")
    private String projectId;
    /**
     * 父元素id
     */
    @TableField(value = "parentId")
    private String parentId;

    /**
     * 类型 1 文件夹  2 文件
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 创建人id
     */
    @TableField(value = "createdId")
    private String createdId;

    /**
     * 更新人id
     */
    @TableField(value = "updatedId")
    private String updatedId;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;
}
